package com.board.form;
//商家出餐外送订单
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
@ApiModel("商家出餐外送订单参数对象")
public class StoreOutSendOrderForm {
    @ApiModelProperty("订单编号")
    @NotNull(message = "订单编号不能为空")
    private String orderNum;
    @ApiModelProperty("商家配送人员名字")
    @NotNull(message = "商家配送人员名字不能为空")
    private String senderName;
    @ApiModelProperty("商家配送人员电话")
    @NotNull(message = "商家配送人员电话不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号码格式错误")
    private String senderPhone;
}
